﻿using IterationLife.Domains.Sports.Dtos.MTDatas;

namespace IterationLife.Domains.Sports.Models
{
    /// <summary>
    /// 体育比赛分组运动员
    /// </summary>
    public partial class SportEventGroupPerson
    {

        public MTGatherData GetJsonData()
        {
            if (string.IsNullOrWhiteSpace(this.JsonData))
                return new MTGatherData();
            return Util.Json.ToObject<MTGatherData>(this.JsonData);
        }

        public void SetJsonData(MTGatherData history)
        {
            if (history == null)
                this.JsonData = null;
            this.JsonData = Util.Json.ToJson(history);
        }
    }
}